﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RemoteDesktop
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
			colordepth.DataSource = Enum.GetValues(typeof(ServerComputer.Colors));
		}

		private void button1_Click(object sender, EventArgs e)
		{
			ServerComputer server = new ServerComputer();
			server.Server = name.Text;
			server.Domain = domain.Text;
			server.User = user.Text;
			server.Password = password.Text;
			server.ShareDrives = shdiscdrives.Checked;
			server.SharePrinters = shprinters.Checked;
			server.ColorDepth = (ServerComputer.Colors)colordepth.SelectedItem;
			RemoteForm rem_form = new RemoteForm();
			rem_form.Show();
			rem_form.Connect(server);
			this.Hide();
		}
	}
}
